package edu.suda.xsap.service.impl;
import edu.suda.xsap.entity.ChartData;
import edu.suda.xsap.mapper.ChartMapper;
import edu.suda.xsap.service.ChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ChartServiceImpl implements ChartService {
    @Autowired
    private ChartMapper chartMapper;

    @Override
    public List<ChartData> getCardData(){
        return chartMapper.getCardData();
    }
    @Override
    public List<ChartData> getCostData(){
        return chartMapper.getCostData();
    }
    @Override
    public List<ChartData> getCourseCostData(){
        return chartMapper.getCourseCostData();
    }
}
